<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('员工工号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-field="username" data-source="department/user/index"
                   class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_subsidy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_subsidy" class="form-control" step="0.01" name="row[car_subsidy]" type="number"
                   value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_subsidy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_subsidy" class="form-control" step="0.01" name="row[house_subsidy]" type="number"
                   value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_subsidy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_subsidy" class="form-control" step="0.01" name="row[money_subsidy]" type="number"
                   value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Disabled_subsidy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-disabled_subsidy" class="form-control" step="0.01" name="row[disabled_subsidy]" type="number"
                   value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Party_subsidy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-party_subsidy" class="form-control" step="0.01" name="row[party_subsidy]" type="number"
                   value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('加班费')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overtime_bonus" class="form-control" step="0.01" name="row[overtime_bonus]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bonus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bonus" class="form-control" step="0.01" name="row[bonus]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manage_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manage_fee" class="form-control" step="0.01" name="row[manage_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tax_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tax_fee" class="form-control" step="0.01" name="row[tax_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trans_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trans_fee" class="form-control" step="0.01" name="row[trans_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Meal_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-meal_fee" class="form-control" step="0.01" name="row[meal_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Income_tax')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-income_tax" class="form-control" step="0.01" name="row[income_tax]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-date" class="form-control" name="row[date]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload"
                                  data-input-id="c-image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                  data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
                                  data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('待支付'), '1'=>__('待审核'), '5'=>__('已同意')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
